<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<jsp:useBean id="bean" class="com.lmpop.frame.util.RandomID" scope="page" /> 
<%@page import="com.lmpop.frame.dao.MenuInfo" %>
<%
	request.setCharacterEncoding("UTF-8");
	String menu_id = bean.GenTradeId();
	MenuInfo menuInfo = new MenuInfo();
	String module_id = menuInfo.getFourRandnum();
	
	
	
	String s_up_menu_id="",s_menu_class="1",s_subsys_code="SYS";
	String up_menu_name ="无上级";
	  if(request.getParameter("s_up_menu_id")!=null && !request.getParameter("s_up_menu_id").equals("")){
			s_up_menu_id = request.getParameter("s_up_menu_id");
			up_menu_name = menuInfo.getMenuName(s_up_menu_id);
		}	
	  if(request.getParameter("s_menu_class")!=null && !request.getParameter("s_menu_class").equals("")){
			s_menu_class = request.getParameter("s_menu_class");
		}	
        // out.print(s_menu_class);		
	  if(request.getParameter("s_subsys_code")!=null && !request.getParameter("s_subsys_code").equals("")){
			s_subsys_code = request.getParameter("s_subsys_code");
		} 		

	String cust_id="",publish_user_id="";
	if(session.getAttribute("session_cust_id")!=null){
		cust_id  = session.getAttribute("session_cust_id").toString();
	}
	if(session.getAttribute("session_user_id")!=null){
		publish_user_id  = session.getAttribute("session_user_id").toString();
	}		
%>

<html>
  <head>
    <title>菜单管理</title>
	<link href="/program/company/index/css/style.css" rel="stylesheet" type="text/css">
	<script type='text/javascript' src='/js/jquery-1.4.2.min.js'></script>	
	<script type='text/javascript' src='js_menu.js'></script>	
</head>

<body>
	<h1>新增菜单</h1>
	<form action="/doTradeReg.do" method="post" name="addForm">
	
	<table width="100%" cellpadding="0" cellspacing="1" border="0" class="listtab">

<tr>
	<td align="right" width="10%">
		上级菜单:
	</td>
	<td><%=up_menu_name%></td>
	
</tr>	

<tr>
	<td align="right" width="10%">
		菜单名称:
	</td>
	<td><input name="menu_name" id="menu_name" type="text" /></td>
</tr>
<tr>
	<td align="right" width="10%">
		排序:
	</td>
	<td><input name="rsrv_str0" id="rsrv_str0" type="text" size="4" maxlength="4" onKeyUp="if(!/^[0-9][0-9]*$/.test(this.value))this.value=''"/></td>
</tr>
<!--<tr>
<td align="right" width="10%">
		菜单类型:
	</td>
	<td>
	SYS<input name="type" id="sys" type="radio" value="1" />
	B2B<input name="type" id="b2b" type="radio"  value="2" checked/>
	</td>
</tr>-->
<tr>
	<td align="right" width="10%">
		是否显示:
	</td>
	<td>
	是<input name="remove_tag" id="remove_tag_1" type="radio" value="1" checked/>
	否<input name="remove_tag" id="remove_tag_2" type="radio"  value="2" />
	</td>
</tr>
<tr>
	<td align="right" width="10%">
		是否创建模型表:
	</td>
	<td>
	
	是<input name="is_create_module" id="is_create_module_1" type="radio" value="0" checked/>
	否<input name="is_create_module" id="is_create_module_2" type="radio" value="1" />
	
	</td>
</tr>
<tbody id="is_create_module_hidden">
<tr>
	<td align="right" width="10%">
		菜单模型名称:
	</td>
	<td><input name="module_name" id="module_name" type="text" value="" /></td>
</tr>

<tr>
	<td align="right" width="10%">
		文件名称:
	</td>
	<td><input name="module_file" id="module_file" type="text" /></td>
</tr>

<tr>
	<td align="right" width="10%">
		页面地址:
	</td>
	<td><input name="module_dir" id="module_dir" type="text" /></td>
</tr>
</tbody>
<script>
	$(function(){
		
	})
</script>

<input name="subsys_code" id="subsys_code" type="hidden" value="<%=s_subsys_code%>" />
<input name="menu_id" id="menu_id" type="hidden" value="<%=menu_id%>" />
<input name="up_menu_id" id="up_menu_id" type="hidden" value="<%=s_up_menu_id%>"/>
<input name="module_id" id="module_id" type="hidden" value="<%=module_id%>" />
<input name="menu_class" id="menu_class" type="hidden" value="<%=s_menu_class%>" />
<input name="menu_type" id="menu_type" type="hidden" value="" />
<input name="in_param_code1" id="in_param_code1" type="hidden" />
<input name="in_param_value1" id="in_param_value1" type="hidden" />
<input name="in_param_code2" id="in_param_code2" type="hidden" />
<input name="in_param_value2" id="in_param_value2" type="hidden" />
<input name="in_param_code3" id="in_param_code3" type="hidden" />
<input name="in_param_value3" id="in_param_value3" type="hidden" />

<input name="rsrv_str1" id="rsrv_str1" type="hidden" />
<input name="rsrv_str2" id="rsrv_str2" type="hidden" />
<input name="rsrv_str3" id="rsrv_str3" type="hidden" />
<input name="rsrv_str4" id="rsrv_str4" type="hidden" />
<input name="rsrv_str5" id="rsrv_str5" type="hidden" />
<input name="rsrv_str6" id="rsrv_str6" type="hidden" />
<input name="rsrv_str7" id="rsrv_str7" type="hidden" />
<input name="rsrv_str8" id="rsrv_str8" type="hidden" />
<input name="rsrv_str9" id="rsrv_str9" type="hidden" />
<input name="in_staff_id" id="in_staff_id" type="hidden" value="<%=publish_user_id%>" />
<input name="in_date" id="in_date" type="hidden" />
<input name="remark" id="remark" type="hidden" />
		
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="bpm_id" value="7416" />
				<input type="button" class="buttoncss" name="tradeSub" value="提交"  onclick="return formSubmit();"/>&nbsp;&nbsp;
				<input type="button" class="buttoncss" name="tradeRut" value="返回" onclick="window.location.href='index.jsp';"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
